package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.Getter;

@Getter
@TableName("product_like")
public class ProductStar {
    @TableField("product_id")
    private Integer product_id;
    @TableField("user_id")
    private Integer user_id;
    @TableField("like_state")
    private Boolean like_state;

    public ProductStar(Integer product_id, Integer user_id, Boolean like_state) {
        this.product_id = product_id;
        this.user_id = user_id;
        this.like_state = like_state;
    }
    public ProductStar() {
    }

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Boolean getLike_state() {
        return like_state;
    }

    public void setLike_state(Boolean like_state) {
        this.like_state = like_state;
    }

    @Override
    public String toString() {
        return "ProductStar{" +
                "product_id=" + product_id +
                ", user_id=" + user_id +
                ", like_state=" + like_state +
                '}';
    }
}
